<?php

include('autoload.php');

$user = new User();

$user ->stud_id = mysql_escape_string($_POST['username']);
$user ->stud_lname = mysql_escape_string($_POST['password']);
$result = true;
$result = $user->Slogin();

    if ($result)
    {
        
        header('location:student.php');
    }
    
    else
    {
        header('location:index.php');
        
    }
    
?>